<?php
namespace Admin\Controller;
use Think\Controller;
class CommontController extends Controller {
	//防止翻墙,判断用户是否存在
    public function __construct(){
        parent::__construct();
        if(!session('username')){
            $this->success("请先登录",U('Public/login'));die;
        }
    }
   
}